//
//  UIButton+XG.h
//  Project
//
//  Created by sins on 16/7/11.
//  Copyright © 2018 益萃网络科技（中国）有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *  Button点击事件
 */
typedef void (^Click)(void);

typedef void (^ClickReturn)(UIButton *btn);

typedef enum {

    // 设置图片
    XGSetBtnImage = 0,

    // 设置背景图片
    XGSetBackIamge

} XGSetBtnImageType;

@interface UIButton (BZ)

@property (nonatomic, copy) Click click;

@property (nonatomic, copy) ClickReturn clickReturn;

- (void)setBtnImageWithImageType:(XGSetBtnImageType)imageType
                        forState:(UIControlState)state
                        ImageURL:(NSString *)urlStr
                PlaceholderImage:(NSString *)imageStr;

@end
